/*
 * 
 *  jiangcheng
 *  
 */

package com.uhaou.web.model;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;
import org.apache.commons.lang.StringUtils;

import com.uhaou.common.base.*;
import com.uhaou.common.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.uhaou.web.model.*;
import com.uhaou.web.dao.*;
import com.uhaou.web.service.*;
import com.uhaou.web.vo.query.*;

/**
 * @author  jiangcheng
 * @version 1.0
 * @since 1.0
 */


public class WebFriendGrel extends BaseEntity implements java.io.Serializable {
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "WebFriendGrel";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_MEMBER_ID = "memberId";
	public static final String ALIAS_FRIENDG_NAME = "friendgName";
	public static final String ALIAS_PUB_STATE = "pubState";
	public static final String ALIAS_REMARK = "remark";
	
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=32)
	private java.lang.String id;
	@Length(max=32)
	private java.lang.String memberId;
	@Length(max=32)
	private java.lang.String friendgName;
	@Length(max=32)
	private java.lang.String pubState;
	@Length(max=300)
	private java.lang.String remark;
	//columns END

	public WebFriendGrel(){
	}

	public WebFriendGrel(
		java.lang.String id
	){
		this.id = id;
	}

	public void setId(java.lang.String value) {
		this.id = value;
	}
	
	public java.lang.String getId() {
		return this.id;
	}
	public void setMemberId(java.lang.String value) {
		this.memberId = value;
	}
	
	public java.lang.String getMemberId() {
		return this.memberId;
	}
	public void setFriendgName(java.lang.String value) {
		this.friendgName = value;
	}
	
	public java.lang.String getFriendgName() {
		return this.friendgName;
	}
	public void setPubState(java.lang.String value) {
		this.pubState = value;
	}
	
	public java.lang.String getPubState() {
		return this.pubState;
	}
	public void setRemark(java.lang.String value) {
		this.remark = value;
	}
	
	public java.lang.String getRemark() {
		return this.remark;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("MemberId",getMemberId())
			.append("FriendgName",getFriendgName())
			.append("PubState",getPubState())
			.append("Remark",getRemark())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof WebFriendGrel == false) return false;
		if(this == obj) return true;
		WebFriendGrel other = (WebFriendGrel)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

